//
//  SubmitSuccessViewController.m
//  Learn
//
//  Created by 迟建国 on 2024/4/6.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "SubmitSuccessViewController.h"

@interface SubmitSuccessViewController ()

@end

@implementation SubmitSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"重点词组归纳";
    self.view.backgroundColor = UIColor.whiteColor;
    [self setUI];
    // Do any additional setup after loading the view.
}

- (void)setUI {
    
    UIImageView *imageView = [[UIImageView alloc] init];
    imageView.image = [UIImage imageNamed:@"icon_success_bg"];
    [self.view addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view.mas_centerX);
        make.top.equalTo(self.view.mas_top).offset(120 + NavigationBarHeight);
        make.height.offset(86);
        make.width.offset(76);
    }];
    
    UILabel *titleL = [[UILabel alloc] init];
    titleL.text = @"提交成功";
    titleL.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:20];
    titleL.textColor = rgba(12, 183, 108, 1);
    titleL.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleL];
    [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(imageView.mas_bottom).offset(20);
        make.centerX.equalTo(self.view.mas_centerX);
    }];
    
    UILabel *timeL = [[UILabel alloc] init];
    timeL.text = @"学习用时：9S";
    timeL.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:14];
    timeL.textColor = rgba(51, 51, 51, 1);
    timeL.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:timeL];
    [timeL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleL.mas_bottom).offset(15);
        make.centerX.equalTo(self.view.mas_centerX);
    }];
}
@end
